package com.lyl.security.module.system.service.impl;

import com.lyl.security.module.system.dao.PermissionsDao;
import com.lyl.security.module.system.service.PermissionsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author Mr.Luo
 * @date 2022-09-14 17:00
 * @desc
 */
@Service
@RequiredArgsConstructor
public class PermissionsServiceImpl implements PermissionsService {
    private final PermissionsDao permissionsDao;

    @Override
    public Set<String> getMenuPermsByUserId(Long userId) {
        return permissionsDao.getMenuPermsByUserId(userId);
    }
}
